package com.san.earlyWarning.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.san.common.utils.Query;
import com.san.earlyWarning.dao.EarlyWarningDao;
import com.san.earlyWarning.dao.EarlyWarningManager;
import com.san.earlyWarning.domain.EarlyWarningCompanyDO;
import com.san.earlyWarning.domain.EarlyWarningDO;
import com.san.earlyWarning.domain.WarningFollowDO;
import com.san.earlyWarning.service.EarlyWarningService;

@Deprecated
@Service
public class EarlyWarningServiceImpl implements EarlyWarningService {

	@Autowired
	EarlyWarningDao earlyWarningMapper;
	
	@Autowired
	EarlyWarningManager earlyWarningManager;
	
	@Override
	public List<EarlyWarningDO> list(Query query) {
		return earlyWarningMapper.list(query);
	}

	@Override
	public int count(Query query) {
		return earlyWarningMapper.count(query);
	}

	@Override
	public int changeStatus(EarlyWarningDO earlyWarningDO) {
		return earlyWarningMapper.changeStatus(earlyWarningDO);
	}

	@Override
	public int save(EarlyWarningDO earlyWarningDO) {
		return earlyWarningMapper.save(earlyWarningDO);
	}

	@Override
	public int remove(Long id) {
		return earlyWarningMapper.remove(id);
	}

	@Override
	public EarlyWarningDO getById(Long warnId) throws Exception {
		return earlyWarningMapper.getById(warnId);
	}

	@Override
	public int doEdit(EarlyWarningDO earlyWarningDO) throws Exception {
		return earlyWarningMapper.doEdit(earlyWarningDO);
	}

	@Override
	public List<EarlyWarningDO> listFollow(Query query) throws Exception {
		return earlyWarningMapper.listFollow(query);
	}

	@Override
	public int countFollow(Query query) throws Exception {
		return earlyWarningMapper.countFollow(query);
	}

	@Override
	public int followAdd(WarningFollowDO warningFollowDO) throws Exception {
		return earlyWarningMapper.followAdd(warningFollowDO);
	}

	@Override
	public int followRemove(WarningFollowDO warningFollowDO) throws Exception {
		return earlyWarningMapper.followRemove(warningFollowDO);
	}

	@Override
	public List<WarningFollowDO> listFollowReview(Query query) {
		return earlyWarningMapper.listFollowReview(query);
	}

	@Override
	public int countFollowReview(Query query) {
		return earlyWarningMapper.countFollowReview(query);
	}

	@Override
	public int reviewFollowStatus(WarningFollowDO warningFollowDO) throws Exception {
		return earlyWarningMapper.reviewFollowStatus(warningFollowDO);
	}

	@Override
	public List<EarlyWarningDO> listAllFollow() throws Exception {
		return earlyWarningMapper.listAllFollow();
	}

	@Override
	public List<EarlyWarningCompanyDO> listMyFollowDetail(Query query) throws Exception {
		return earlyWarningManager.listMyFollowDetail(query);
	}

	@Override
	public int CountMyFollowDetail(Query query) throws Exception {
		return earlyWarningManager.CountMyFollowDetail(query);
	}

	@Override
	public Long myFollowCount(Long warnId, Long deptId) throws Exception {
		return earlyWarningManager.CountMyFollowDetail(warnId,deptId);
	}

	@Override
	public int batchAddData(Long warnId, Long deptId, List<List<String>> datas) {
		return earlyWarningManager.batchAddData(warnId,deptId,datas);
	}

	@Override
	public boolean batchRemoveData(Long warnId, Long deptId) throws Exception {
		return earlyWarningManager.batchRemoveData(warnId,deptId);
	}

}
